﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LTSMZ.life.DAL;
using LTSMZ.life.Model;

namespace LTSMZ.life.BLL
{
    public class ShoppingCarBll
    {
        ShoppingCarDal dal = new ShoppingCarDal();
        /// <summary>
        /// 购物车显示
        /// </summary>
        /// <param name="UserName"></param>
        /// <returns></returns>
        public System.Data.DataTable ShowShoppingCar(int id)
        {
            return dal.ShowShoppingCar(id);
        }

         /// <summary>
        ///添加购物车
        /// </summary>
        /// <returns></returns>
        public int InsertShoppingCar(ShoppingCar car)
        {
            return dal.InsertShoppingCar(car);
        }

         /// <summary>
        /// 删除购物车
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int delShoppingCar(int id)
        {
            return dal.delShoppingCar(id);
        }
    }
}
